package com.zc.inkdemo;

import android.graphics.Color;
import android.os.Environment;

import java.io.File;

public class Constant {
	public static final String COPY_FILE = "COPY_FILE";
	public static final String COPY_FILE_DEFAULT = "1";
	/**
	 * 项目路径
	 */
	public static final String PROJECT_PATH = Environment.getExternalStorageDirectory()+ File.separator+"dianju"+ File.separator;
	public static final String FONTS_PATH = Environment.getExternalStorageDirectory()+ File.separator+"dianju"+ File.separator+"fonts"+ File.separator;
	//手写印章路径
	public static final String PNG_PATH = PROJECT_PATH + "handseal.png";
	//临时语音文件路径
	public static final String VOICE_PATH = PROJECT_PATH + "voice.amr";
	
	public static final String penWidth = "penWidth";
	public static final String penColor = "penColor";
	public static final String isHandWrite = "isHandWrite";
	public static final String isInternalConrol = "isInternalConrol";//使用内部挂件(编辑框，日历)
	public static final String SIGN_ISMOVE = "SIGN_ISMOVE";//是否可移动
	public static final String SIGN_ISBACK = "SIGN_ISBACK";//是否带背景图
	public static final String SIGN_ISTRANSPARENT = "SIGN_ISTRANSPARENT";//是否透明
	public static final String PAGE_MODE = "PAGE_MODE";//浏览模式(0左右翻页，1上下页)
	public static final String LOGIN_NAME = "LOGIN_NAME";//登陆用户名
	//public static final int LOGIN_TYPE = 4;//4-测试用户(测试用户数量有限，仅有HWSEALDEMO、HWSEALDEMO1、HWSEALDEMO2);2-正式用户
	public static final String SET_FONTS = "SET_FONTS";//设置字体
	public static final String SET_SIGNSUFFIX = "SET_SIGNSUFFIX";//设置签名章
	public static final String AUTHORIZATION_TYPE = "AUTHORIZATION_TYPE";
	public static final String AUTHORIZATION_LIC = "AUTHORIZATION_LIC";//用来存储授权码(按设备号授权方式)
	public static final String AUTHORIZATION_ACCOUNT1 = "AUTHORIZATION_ACCOUNT1";
	public static final String AUTHORIZATION_ACCOUNT2 = "AUTHORIZATION_ACCOUNT2";
	
	public static final int DEFAULT_PEN_WIDTH = 10;//默认笔宽
	public static final int DEFAULT_PEN_COLOR = Color.BLACK;//默认颜色
	public static final String DEFAULT_HANDWRITE = "true";//默认支持手写
	public static final String DEFAULT_INTERNAL_CONTROL = "false";//默认不适用内置控件
	public static final String SIGN_MOVE_DEFAULT = "1";//默认可移动
	public static final String SIGN_BACK_DEFAULT = "0";//默认不带背景图
	public static final String SIGN_TRANSPARENT_DEFAULT = "1";//默认透明
	public static final String PAGE_MODE_DEFAULT = "1";//默认1上下翻页
	public static final String LOGIN_NAME_DEFAULT = "HWSEALDEMO";//默认为HWSEALDEMO测试用户
	public static final String SET_FONTS_DEFAULT = "1";//默认不设置字体
	public static final String SET_SIGNSUFFIX_DEFAULT = "0";//默认不设置签名章
	public static final String AUTHORIZATION_TYPE_DEFAULT = "1";//1-设备号授权；2-账号授权；3-二维码授权
	public static final String AUTHORIZATION_LIC_DEFAULT = "";//默认为空
	public static final String AUTHORIZATION_ACCOUNT1_DEFAULT = "androidceshi004";//授权账号1
	public static final String AUTHORIZATION_ACCOUNT2_DEFAULT = "androidceshi004";//授权账号2
	
	public static final String SIGNSUFFIX_PIC = PROJECT_PATH+"ceshi.jpg";//签名章位置
	
	
	
	
	
	
	
	
	public static final String DIR_PATH = "DIR_PATH";//展示文件列表路径
	public static final String DIR_PATH_DEFAULT = Environment.getExternalStorageDirectory()+ File.separator+"dianju";//文件列表路径
	public static final String OPEN_PATH = "OPEN_PATH";//打开文件列表路径
	public static final String OPEN_PATH_DEFAULT = Environment.getExternalStorageDirectory()+ File.separator+"dianju";//文件列表路径
	public static final String SAVE_PATH = "SAVE_PATH";//保存文件列表路径
	public static final String SAVE_PATH_DEFAULT = Environment.getExternalStorageDirectory()+ File.separator+"dianju";//文件列表路径
	
	public static final String TYPE = "SIGN_FILE";
	
	public static final String LIC = "Jt8IMDF0SygQzCgDa0nKBqw9DX70OPB0";
	public static final String AUTHORIZATION_ADDRESS = "http://www.dianju.cn:9239";//授权地址
	//public static final String AUTHORIZATION__ACCOUNT = "http://www.dianju.cn:9239";//授权账号
	
	public static final String AUTO_HANDLE_COVER = "AUTO_HANDLE_COVER";//遮盖
	public static final String SIGN_AUTO = "SIGN_AUTO";//自由签字(划矩形弹框手写)
	public static final String SIGN_AUTO_PFX = "SIGN_AUTO_PFX";//自由签字，带数字证书(点击屏幕，弹手写界面，写完以印章形式落回)
	public static final String AUTO_HANDLE_VOICE= "AUTO_HANDLE_VOICE";//语音签批
	public static final String AUTO_PHOTO= "AUTO_PHOTO";//插入图片
	public static final String AUTO_DELNODE = "AUTO_DELNODE";//删除节点
	
	//无授权
	public static String NOAUTHORIZATION_STR ="介绍：没有授权情况下可以使用测试用户登陆，测试用户仅有HWSEALDEMO、HWSEALDEMO1、HWSEALDEMO2，在使用这几个用户登陆时，无需调用授权接口，测试用户的各项功能正常，个别功能的使用会收到限制";
	//设备号授权
	public static String AUTHORIZATION_IMEI_STR ="介绍：依据该设备的设备号，提供商生产对应的授权码，授权之后可登陆正式用户使用";
	//账号授权
	public static String AUTHORIZATION_ACCOUNT_STR ="介绍：提供商提供的一个账号，该账号会包含N个可以授权的名额，每台设备使用时会消耗掉一个名额，同一个设备不会重复消耗名额,设备首次使用需要访问互联网申请授权，申请到授权后会存储在SD上，只要授权文件存在，以后调用授权验证接口直接访问SD卡，不会再访问互联网(再次温馨提醒：该方式需要访问互联网)";
	//二维码授权
	public static String AUTHORIZATION_CODE_STR ="介绍：跟账号授权相同，需要提供商提供的一个账号，该模式仅针对不能访问互联网的设备设计，需要安装一个android的授权apk，通过一台能访问互联网的设备对其他不能访问网络的设备进行授权(更详细的介绍参考'对无网络设备扫码授权.docx')";
	
	
	
	public interface RequestCode {
		
		int SET_PATH = 2;//加载列表
		int NEW_OPEN = 3;//打开文件
		int SAVE_AS = 4;//另存
		int SIGN_POSITION = 5;//固定位置签字(弹框)
		int SIGN_AUTO = 501;//扩展的弹出框手写
		int SIGN_AUTO_PFX = 502;//弹出手写框(盖手写章)
		int CHAOXIE = 6;//抄写(弹框)
		int PHOTO = 7;//拍照
		int AUTO_HANDLE_VOICE = 8;//语音签批
		int AUTO_PHOTO = 9;//插入图片
		
	}


	
	
}
